package com.numberone.master.modules.recharge.entity;

import org.hibernate.validator.constraints.Length;
import com.numberone.master.modules.sys.entity.Office;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 物联卡套餐Entity
 * @author chengkang
 * @version 2018-02-11
 */
public class Package extends DataEntity<Package> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 流量
	private Double price;		// 价格
	private String tctype;		// 套餐类型
	private Office office;		// 所属代理商
	private String tcId;		// tc_id
	private Double salePrice;	// 销售单价（销售单价大于等于成本单价）
	private String ids;
	private String createId; //录入人代理商
	private String createName;//代理商名称
	public Package() {
		super();
	}

	public Package(String id){
		super(id);
	}

	@Length(min=0, max=48, message="流量长度必须介于 0 和 48 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@Length(min=0, max=60, message="套餐类型长度必须介于 0 和 60 之间")
	public String getTctype() {
		return tctype;
	}

	public void setTctype(String tctype) {
		this.tctype = tctype;
	}
	
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@Length(min=0, max=255, message="tc_id长度必须介于 0 和 255 之间")
	public String getTcId() {
		return tcId;
	}

	public void setTcId(String tcId) {
		this.tcId = tcId;
	}
	
	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}
	
}